package com.linkage.educloud.ah.mvp.contract.dynamic;

import com.linkage.educloud.ah.http.Method;
import com.linkage.educloud.ah.mvp.ABasicPresenter;
import com.linkage.educloud.ah.mvp.IBasicView;
import com.linkage.educloud.ah.mvp.ICommonModel;
import com.zhouyou.http.model.HttpParams;

import java.io.File;
import java.util.List;

import io.reactivex.Observable;

/**
 * Created by Mr'Tang on 2018/11/21.
 */

public interface IDynamicWriteContract {
    interface IView extends IBasicView {
        void changeTheme(String msg);

        void addSuccess();
    }

    abstract class IPresenter<T extends IBasicView> extends ABasicPresenter {
        public IPresenter(T iView) {
            super(iView);
        }

        public abstract void getTheme(String clazz_id, String version);

        public abstract void senddynamicmsg(String clazz_id, final Long userid, int type, int usertype, final String content, String uploadimage, int photo_sync, int notice_sync);

        public abstract void senddynamicattachment(int type, String clazz_id, File file);
    }

    interface IModel extends ICommonModel {
        Observable<String> request(boolean isToken, HttpParams params, File file);
    }
}
